﻿// https://www.anton.website/readonly-attribute/

using UnityEngine;

namespace GameBasic
{
    public class ShowOnlyAttribute : PropertyAttribute
    {
        /// <summary>
        /// Writes a warning if the value of this field is null
        /// </summary>
        public readonly bool warningIfNull = false;

        public ShowOnlyAttribute(bool _warningIfNull = true)
        {
            warningIfNull = _warningIfNull;
        }
    }
}